﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="admin_workscategory.aspx.cs" Inherits="Web.admin_workscategory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cssContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="jsContent" runat="server">
    <script type="text/javascript" language="javascript">
        $(function() {
            initSideNav("nav-work", "admin_workscategory.aspx");
        });
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="mainContent" runat="server">
<div class="content-box">
        <!-- Start Content Box -->
        <div class="content-box-header">
            <h3>
                案例分类管理</h3>
            <ul class="content-box-tabs">
                <li><a href="admin_workscategory.aspx" class="default-tab">列表</a></li>
                <li><a href="admin_wcadd.aspx">添加</a></li>
            </ul>
            <div class="clear">
            </div>
        </div>
        <!-- End .content-box-header -->
        <div class="content-box-content">
            <div class="tab-content default-tab" id="tab1">
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true">
                    <ContentTemplate>
                        <div class="notification success png_bg" id="noticesuccess" runat="server">
                            <a href="#" class="close">
                                <img src="resources/images/icons/cross_grey_small.png" title="Close this notification"
                                    alt="close" /></a>
                            <div id="noticesuccesstext" runat="server">
                                操作已成功！
                            </div>
                        </div>
                        <div class="notification error png_bg" id="noticefailed" runat="server">
                            <a href="#" class="close">
                                <img src="resources/images/icons/cross_grey_small.png" title="Close this notification"
                                    alt="close" /></a>
                            <div id="noticefailedtext" runat="server">
                                操作失败！请重新尝试！
                            </div>
                        </div>
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input class="check-all" type="checkbox" />
                                    </th>
                                    <th>
                                        序号
                                    </th>
                                    <th>
                                        分类标题
                                    </th>
                                    <th>
                                        分类介绍
                                    </th>
                                    <th>
                                        分类图片
                                    </th>
                                    <th>
                                        操作
                                    </th>
                                </tr>
                            </thead>
                            <tfoot>
                                <tr>
                                    <td colspan="5">
                                        <div class="bulk-actions align-left">
                                            <asp:DropDownList ID="ddlChange" runat="server">
                                                <asp:ListItem Value="1">删除</asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:Button ID="btnChange" runat="server" Text="修改" CssClass="button" OnClick="btnChange_Click" />
                                        </div>
                                        <!-- End .pagination -->
                                        <div class="clear">
                                        </div>
                                    </td>
                                </tr>
                            </tfoot>
                            <tbody>
                                <asp:Repeater ID="CategoryListRpt" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <input type="checkbox" name="ckb" value="<%# Eval("CategoryID") %>" />
                                            </td>
                                            <td>
                                                <asp:Label ID="lbl_NewsID" runat="server" Text='<%# Eval("CategoryID") %>'></asp:Label>
                                            </td>
                                            <td>
                                                <a href="admin_works.aspx?cid=<%# Eval("CategoryID") %>" title="title">
                                                    <%# Eval("CategoryName") %>
                                            </td>
                                            <td>
                                                <%# Eval("IntroOne")%><br />
                                                <%# Eval("IntroTwo")%><br />
                                                <%# Eval("IntroThree")%>
                                            </td>
                                            <td>
                                                <img src='<%#Eval("CategoryPicURL")%>' alt='' height="100px"/>
                                            </td>
                                            <td>
                                                <!-- Icons -->
                                                <a href="admin_wcupdate.aspx?cid=<%# Eval("CategoryID") %>" title="Edit"><img src="resources/images/icons/pencil.png" alt="Edit" /></a>
                                                <asp:ImageButton ID="ibtnDelete" runat="server" ImageUrl="resources/images/icons/cross.png" OnClick="ibtnDelete_OnClick" ToolTip='<%# Eval("CategoryID") %>' CssClass="deletebutton" />
                                                
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <!-- End #tab1 -->
        </div>
        <!-- End .content-box-content -->
    </div>
</asp:Content>
